package database;

import utils.StringUtils;

import java.text.DecimalFormat;

/**
 * Created by jimmyhsu on 2016/12/14.
 */
public class CommentBean {
    private String className;
    private float classContent;
    private float teacherCapability;
    private float personalGain;
    private DecimalFormat mFormat = new DecimalFormat("#.00");

    public CommentBean(String className, float classContent, float teacherCapability, float personalGain) {
        this.className = className;
        this.classContent = classContent;
        this.teacherCapability = teacherCapability;
        this.personalGain = personalGain;
    }

    public String getClassName() {
        return className;
    }

    public void setClassName(String className) {
        this.className = className;
    }

    public String getClassContent() {
        return StringUtils.parseFloat(classContent);
    }

    public void setClassContent(float classContent) {
        this.classContent = classContent;
    }

    public String getTeacherCapability() {
        return StringUtils.parseFloat(teacherCapability);
    }

    public void setTeacherCapability(float teacherCapability) {
        this.teacherCapability = teacherCapability;
    }

    public String getPersonalGain() {
        return StringUtils.parseFloat(personalGain);
    }

    public void setPersonalGain(float personalGain) {
        this.personalGain = personalGain;
    }

    public CommentBean() {
    }
}
